import request from '@/utils/request'

// 查询升级记录列表
export function listSysUpgradeRecord(query) {
  return request({
    url: '/meter/sysUpgradeRecord/list',
    method: 'get',
    params: query
  })
}

// 查询升级记录详细
export function getSysUpgradeRecord(upgradeId) {
  return request({
    url: '/meter/sysUpgradeRecord/' + upgradeId,
    method: 'get'
  })
}

// 新增升级记录
export function addSysUpgradeRecord(data) {
  return request({
    url: '/meter/sysUpgradeRecord',
    method: 'post',
    data: data
  })
}

// 修改升级记录
export function updateSysUpgradeRecord(data) {
  return request({
    url: '/meter/sysUpgradeRecord',
    method: 'put',
    data: data
  })
}

// 删除升级记录
export function delSysUpgradeRecord(upgradeId) {
  return request({
    url: '/meter/sysUpgradeRecord/' + upgradeId,
    method: 'delete'
  })
}
